<?php
require './include/global.php';
require './include/validate.php';
require './include/all_left.php';
require_once './include/advisory_db.php';
$smarty->display('header.tpl');


$errid = trim($_GET[errid]);
switch($errid){
   case rc_1001: 
	   $error = "The job information you entered has an error. Please try again.";
   break;
   case rc_1002: 
	   $error = "You are only allow to submit one candidate record at a time.";
   break;
   case rc_1003: 
	   $error = "Applicant id is invalid. Please try again.";
   break;
   case rc_1004: 
	   $error = "Recruiter id is invalid. Please try again.";
   break;
   case rc_1005: 
	   $error = "You must upgrade to submit candidates.";
       //$url   = "myjobs.php";
   break;
   case rc_1006: 
	   $error = "You must upgrade to access this feature.";
       if($_SESSION['status']=="Trial"){
		   $url   = "cybersource.php";
		   $back  = "Back";
		   //$back  = "Buy Now";
	   }else{
		   $url   = "cybersource.php";
	       $back  = "Back";
	   }
   break;
   case rc_1007: 
	   $error = "You must invite the candidate first.";
      // $url   = "myjobs.php";
   break;
   case rc_1008: 
	   $error = "DB Error";
      // $url   = "myjobs.php";
   break;
   case rc_1009: 
	   $error = "Your message was sent, Please click 'resend' to send this message again.";
        $url   = "submitapplicant.php?jid=$_GET[return]";
	    $back  = "Back";
   break;
   case rc_1010: 
	   $error = "Thankyou!";
   break;
   case rc_1011: 
	   $error = "You are not a Recruiter member, Please register as a Recruiter member to access.";
   break;
   case rc_1012: 
	   $error = "ID Error!";
   break;
  case rc_1013: 
	   $error = "Email address error. The group you selected may not have any contacts.";
   break;
  case rc_1014: 
	   $error = "You need to upgrade your account before you can send a message to the job poster.";
   break;
  case rc_1015: 
	   $error = "You are already connected. You do not need to resend an invitation.";
   break;
   case rc_1016:
		 $error = ' Please upgrade to view this page. Click <a href="subscribe.php">Here</a> to Upgrade! Or contact us at upgrade@enetrecruiter.com';
	break;
   case rc_1017:
		 $error = 'Invalid';
	break;

}
$smarty->assign("url",$url);
$smarty->assign("error",$error);
$smarty->assign("back",$back);

$smarty->display('allleft.tpl');
$smarty->display('errorall.tpl');
$smarty->display('allright.tpl');
$smarty->display('footer.tpl');
?>
